Description
Checks whether auto-updates are forced for an item.
Occurrences
Filename | Line Number |
---|---|
wp-admin/includes/update.php | 1094 |
wp-admin/includes/class-wp-automatic-updater.php | 268 |
Parameters
Type | Name | Description |
---|---|---|
string | $type | The type of update being checked: Either 'theme' or 'plugin'. |
bool|null | $update | Whether to update. The value of null is internally used to detect whether nothing has hooked into this filter. |
object | $item | The update offer. |
PHP Doc
/**
* Checks whether auto-updates are forced for an item.
*
* @since 5.6.0
*
* @param string $type The type of update being checked: Either 'theme' or 'plugin'.
* @param bool|null $update Whether to update. The value of null is internally used
* to detect whether nothing has hooked into this filter.
* @param object $item The update offer.
* @return bool True if auto-updates are forced for `$item`, false otherwise.
*/